home *** CD-ROM | disk | FTP | other *** search
- hwefri92@tufvan.hv.se (Henrik Wetterstrom) wrote:
- >I have been reading through the RKRM loads of times now
- >and been staring at these few lines of assembler code
- >for hors. I think it should do what RKRM tellms me to
- >do, but still it locks up the whole system during the
- >SetIntVector() exec.library call. It never reaches
- >the label 'hang' and the interrupt is never started.
- >What did I do wrong? I am dying for your help.
- >I would appreciate a emailed answer (or maybe rather
- >a Cc: carboncopy of your reply) since I do not trust
- >me news server to bring me all answers.
- >Here's the buggy code:
- >
- >run move.l 4,a6
- > move.l #INTB_VERTB,d0
- > lea int,a1
- > jsr _LVOSetIntVector(a6)
- > move.l d0,oldint
- >
- >hang bra.b hang
- >
-
- >icode move.w #INTF_VERTB,intreq(a0) ; Clear IRQ
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- ***** WHAT ARE YOU TRYING TO DO HERE!!!????? *****
-
- > rts
- >
- >int dc.l 0 ;ln_Succ
- > dc.l 0 ;ln_Pred
- > dc.b NT_INTERRUPT ;ln_Type
- > dc.b 0 ;ln_Pri
- > dc.l irqname ;ln_Name
- > dc.l idata ;is_Data
- > dc.l icode ;is_Code
- >
- >idata dcb.l 10 ;dummy storage
- >oldint dc.l 0
- >irqname dc.b "vbint",0
- >
- >
- >/Henrik Wtterstrom (hwefri92@tufvan.hv.se)
- >
- >
-
-
- I'm not 100% sure (i;m not on my Amiga now) but I think that you miss a
- movem.l a0-a6/d0-d7,-(a7) at the beginning and a movem.l
- (a7)+,a0-a6/d0-d7 at the end (before the rts!).
-
- Then,you didn.t specify which register is in a0 (i think that you should
- have something like lea INTREQ,a0 or something like that, but again I'm
- not 100% sure cause I don't know what are you doing there!).You say that
- you clear the IRQ so that may be the problem(!).
-
- Good luck...
- _________________________________________________________________________
- - ++++ ++++ -
- - +++++ +++++ - Sinisa.Steblaj@Pula.carnet.hr
- - ++++ ++++ -
- - +++++ +++++ - . . .. ... Die and let Live! ... .. . .
- - ++++ lo +++++ -
- _________________________________________________________________________
-
-